﻿using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;
using System.Web.Mvc;
using System.Web.Mvc.Html;

namespace TestApplication.WebUI.Helpers
{
    public static class UrlHelpers
    {
        public static string ApiUrl(this UrlHelper url, string controllerName)
        {
            // TestApplication.WebApi -> Properties -> Web -> ProjectUrl
            return "//localhost:9939/api/" + controllerName;
        }
    }
}